home *** CD-ROM | disk | FTP | other *** search
- Declare Function GetPrivateProfileString Lib "Kernel" (ByVal sect$, ByVal ent$, ByVal def$, ByVal buff$, ByVal ln%, ByVal fname$) As Integer
- Global ServerPath As String
- Global DesignEnv As Integer
-
- Type TypeTestType
- fnd As Integer
- lng As Long
- sng As Single
- rl As Double
- st As String
- fnd2 As Integer
- lng2 As Long
- sng2 As Single
- rl2 As Double
- st2 As String
- stlen As String * 10
- StToDate As Variant
- DateToSt As Variant
- End Type
-
- Type TASKENTRY
- dwSize As Long
- htask As Integer
- hTaskParent As Integer
- hInst As Integer
- hModule As Integer
- wSS As Integer
- wSP As Integer
- wStackTop As Integer
- wStackMinimum As Integer
- wStackBottom As Integer
- wcEvents As Integer
- hQueue As Integer
- szModule As String * 10
- wPSPOffset As Integer
- hNext As Integer
- End Type
-
- Declare Function TaskFindHandle Lib "toolhelp.dll" (tent As TASKENTRY, ByVal htask%) As Integer
- Declare Function GetCurrentTask Lib "Kernel" () As Integer
-
- Sub main ()
- Dim sz As String * 256
- uLen% = GetPrivateProfileString("General", "InstallPath", "", sz, Len(sz), "VBDLLCTL.INI")
- ServerPath = Trim$(Left$(sz, uLen%))
- If Right$(ServerPath, 1) <> "\" Then
- ServerPath = ServerPath + "\"
- End If
- form1.Show
- End Sub
-
-